https://github.com/EDMdesigner/textversionjs